// Place all the styles related to the categories controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/

#index-category {
  .header {
    margin: 30px 115px;

    span.title {
      font-size: 30px;
      color: green;
      font-weight: bold;
    }

    span.create_btn {
      float: right;
      margin-top: -10px;
    }
  }

  table#categories-list {
    margin: auto;
    table-layout: fixed;
    font-size: 13px;
    border: 3px solid black;

    tr.heading {
      font-style: italic;
      border: 3px solid black;
      padding: 5px 10px;
      text-align: center;

      th {
        border: 1px solid #CCC;
      }
    }

    td {
      border: 1px solid #CCC;
      padding: 5px 10px;

      &.name {
        min-width: 100px;
        max-width: 100px;
      }

      &.description {
        min-width: 350px;
        max-width: 350px;
        word-wrap: break-word;
      }
      
      &.actions {
        min-width: 240px;
        max-width: 240px;
      }
    }
  }
}

#new-category, #edit-category {
  .header {
    color: green;
    margin: 30px 115px;
    font-size: 30px;
    font-weight: bold;
  }
}

#category-form {
  fieldset.inputs {
    .error{
      .controls {
        display: inline;
        margin-left: 20px;
      }
    }
  }

  fieldset.form-actions {
    background: transparent;
    border: none;
  }

  textarea {
    resize: none;
    height: 80px;
  }
}

